var lPID="<?php echo cfRGetVar('Library Persistent ID');?>";
var coverTemplate="<?php echo cfExtImage('*resourceBasePath*/IMAGEPATH',FULLVIEW_COVER_WIDTH,FULLVIEW_COVER_WIDTH,true,0,array('utf8Decode'=>true),true);?>";
var coverSmallTemplate=coverTemplate;
var hmsCaption="<?php echo cfCaptionJS('javascriptHourMinSecFormat');?>";
var msCaption="<?php echo cfCaptionJS('javascriptMinSecFormat');?>";
function playTrack(trackId){fas(trackId,'view','firstLoad','','<?php if(cfRGetVar('inlinePlayer')) echo 'async'; else echo 'sync';?>')}
function playAlbum(artistName, albumName){view('album/'+artistName+'/'+albumName,<?php echo DEFAULT_AUDIO_WINDOW_WIDTH.','.DEFAULT_AUDIO_WINDOW_HEIGHT;?>)}
function playArtist(artistName){view('artist/'+artistName,<?php echo DEFAULT_AUDIO_WINDOW_WIDTH.','.DEFAULT_AUDIO_WINDOW_HEIGHT;?>)}
function inlineSetSongPlayed(imgSrc,artist,album,title){
dgi('inlinePlayerImg').src=imgSrc;
dgi('inlineArtist').innerHTML=artist;
dgi('inlineAlbum').innerHTML=album;
dgi('inlineTitle').innerHTML=title;
}
function inlineUpdatePlayerInfo(trackId){fas(trackId,'inlineUpdatePlayerInfo');}
// PLAYLIST FUNCTIONS
<?php if(cfBGetVar('playlistFormat')) {?>
function plAddArtist(artistName){fas(artistName,'plAddArtist');}
function plAddAlbum(artistName, albumName){fas(artistName,'plAddAlbum',albumName);}
function plAddPlaylist(playlistId){fas(playlistId,'plAddPlaylist');}
function plAddTrack(trackId){fas(trackId,'plAddTrack');}
function plAddAllShuffle(){fas(0,'plAddAllShuffle');}
<?php } ?>
// FILTER FUNCTIONS
function changeDisplayType(ndt){fas(ndt,'changeDisplayType');}
function changeItemsPerPage(nb){fas(nb,'changeItemsPerPage');}
function changeOffset(selectSeq){fas(selectSeq,'changeOffset');}
function groupBy(item){setTimeout("fas('"+item+"','changeGroupBy')",500)}
function search(exp){
searchValue=exp;
fas(exp,'search');
}
function validateSearch(){}
function toggleDetail(detailType, artistName, albumName, destId){